<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/9/8
  Time: 15:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../common/include.jsp" %>
<html>
<head>
    <title>Title</title>

    <!-- css -->


    <style>
        .mar {
            margin-top: 8px;
        }
    </style>
    <script type="text/javascript">
        var serverIp = "localhost:8080";
        var editor1 = null;
        $(function () {
            $(".col-sm-4").addClass("mar");
            $(".col-sm-8").addClass("mar");
            $(".col-sm-10").addClass("mar");
        });

    </script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <form class="form-horizontal" id="demandForm" name="demandForm">
        <div class="tabs-container">

            <div id="tab-1" class="tab-pane active">
                <div class="panel-body">
                    <fieldset>
                        <legend>基本信息</legend>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">标题：</label>
                            <div class="col-sm-8">
                                ${operation.title}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">问题产品：</label>
                            <div class="col-sm-4" style="margin-top: 8px">
                                ${operation.demandProductName}
                            </div>
                            <label class="col-sm-2 control-label">反馈来源：</label>
                            <div class="col-sm-4">
                                ${operation.feedbackSource}


                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label">反馈城市：</label>
                            <div class="col-sm-4">
                                ${operation.feedbackCity}

                            </div>

                            <label class="col-sm-2 control-label">反馈人：</label>
                            <div class="col-sm-4">
                                ${operation.feedbackName}
                            </div>

                        </div>

                        <div class="form-group">

                            <label class="col-sm-2 control-label">反馈时间：</label>
                            <div class="col-sm-4">
                                <div class="input-group date">
                                    ${operation.feedbackTime}

                                </div>

                            </div>

                            <label class="col-sm-2 control-label">录入时间：</label>
                            <div class="col-sm-4">
                                ${operation.createTime}

                            </div>

                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">录入人：</label>
                            <div class="col-sm-4">
                                ${operation.createName}

                            </div>
                            <label class="col-sm-2 control-label">分类：</label>
                            <div class="col-sm-4">
                                ${operation.optype}

                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">问题描述：</label>
                            <div class="col-sm-10">
                                ${operation.detail}

                            </div>


                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label">处理结果：</label>
                            <div class="col-sm-10">
                                ${operation.remark}

                            </div>


                        </div>

                    </fieldset>

                    <fieldset>
                        <div class="form-group">
                            <div class="col-sm-10" style="text-align: center;">
                                <button id="closeBut" onclick="closeWin()" class="btn  btn--white" type="button">关闭</button>
                            </div>
                        </div>
                    </fieldset>

                </div>


            </div>


        </div>


        <!--<fieldset>-->
        <!--<legend>字段名</legend>-->
        <!--<div class="form-group">-->
        <!--<label for="disabledSelect" class="col-sm-2 control-label">表名</label>-->
        <!--<div class="col-sm-10">-->
        <!--<select id="disabledSelect" class="form-control">-->
        <!--<option>禁止选择</option>-->
        <!--<option>禁止选择</option>-->
        <!--</select>-->
        <!--</div>-->
        <!--</div>-->
        <!--</fieldset>-->
    </form>
</div>


<script>
    function closeWin() {
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
    }

    $(document).ready(function () {
        $("#demandForm").validate({

            rules: {

                title: {
                    required: true,
                },
                department: {
                    min: 0,
                },
                principal: {
                    min: 0,
                }
            },
            messages: {
                title: {
                    required: '请填写标题'
                },

                feedback_name: {
                    required: '请填写反馈人姓名'
                },
                department: {
                    min: '请选择部门'
                },
                principal: {
                    min: '请选择部门负责人'
                }
            }
        });
    });


    //弹出页面
    $(".btn").click(function () {

        var isReceive = $(this).attr('isReceive');

        var title = "BUG审核-通过";
        if (2 == isReceive) {
            title = "BUG审核-驳回";
        }

        //alert($(this).html());
        //alert($(this).attr('status'));
        //alert($(this).attr('bug_id'));
        //alert($(this).parent('tr').attr('custId'));
        index = layer.open({
            type: 2,
            title: title,
            skin: 'ilayui-layer-rm', //加上边框
            area: ['30%', '65%'], //宽高
            content: 'goCheckBugPage.html?departmentId=' + $(this).attr('departmentId') +
            "&id=" + $(this).attr('bugId') + "&status=" + $(this).attr('status')
            + "&isReceive=" + isReceive
//                end: function () {
//                    location.reload();
//                }

        });
    });
</script>
</body>
</html>
